﻿<%@ Page Title="Đăng Kí" Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="DangKy.aspx.cs" Inherits="DangKy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    .style6
    {
        width: 100%;
    }
    .style8
    {
        font-size: x-large;
    }
    .style9
    {
        width: 245px;
    }
    .style10
    {
        color: #FF3300;
    }
    .style11
    {
        height: 30px;
    }
        .style12
        {
            width: 180px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
    <asp:View ID="View1" runat="server">
        <table class="style6">
            <tr>
                <td class="style12">
                    &nbsp;</td>
                <td>
                    Bắt buộc nhập khi có (<span class="style10">*</span>)</td>
            </tr>
            <tr>
                <td class="style12">
                    Thông tin cá nhân</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="style12">
                    Họ tên :</td>
                <td align="left">
                    <asp:TextBox ID="txthoten" runat="server"></asp:TextBox>
                    <span class="style10">*</span><asp:RequiredFieldValidator 
                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="txthoten" 
                        ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" class="style12">
                    Địa chỉ :</td>
                <td align="left">
                    <asp:TextBox ID="txtdiachi" runat="server"></asp:TextBox>
                    <span class="style10">*<asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                        runat="server" ControlToValidate="txtdiachi" ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr>
                <td align="right" class="style12">
                    Điện thoại :</td>
                <td align="left">
                    <asp:TextBox ID="txtdt" runat="server"></asp:TextBox>
                    <span class="style10" style="color: #A3A3A3">*<asp:RequiredFieldValidator ID="RequiredFieldValidator3" 
                        runat="server" ControlToValidate="txtdt" Display="Dynamic" 
                        ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtdt" ErrorMessage="SDT Không hợp lệ!" 
                        ValidationExpression="\d{10}"></asp:RegularExpressionValidator>
                    &nbsp;</span></td>
            </tr>
            <tr>
                <td class="style12">
                    Thông tin tài khoản</td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="style12">
                    Tên đăng nhập:</td>
                <td align="left">
                    <asp:TextBox ID="txttendn" runat="server"></asp:TextBox>
                    <span class="style10">*<asp:RequiredFieldValidator ID="RequiredFieldValidator4" 
                        runat="server" ControlToValidate="txttendn" ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr>
                <td align="right" class="style12">
                    Mật khẩu :</td>
                <td align="left">
                    <asp:TextBox ID="txtmk1" runat="server" TextMode="Password">*</asp:TextBox>
                    <span class="style10">*<asp:RequiredFieldValidator ID="RequiredFieldValidator5" 
                        runat="server" ControlToValidate="txtmk1" ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                    </span>
                </td>
            </tr>
            <tr>
                <td align="right" class="style12">
                    Nhập lại mật khẩu :</td>
                <td align="left">
                    <asp:TextBox ID="txtmk2" runat="server" TextMode="Password">*</asp:TextBox>
                    <span class="style10">*<asp:RequiredFieldValidator ID="RequiredFieldValidator6" 
                        runat="server" ControlToValidate="txtmk2" Display="Dynamic" 
                        ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                    </span>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtmk1" ControlToValidate="txtmk2" Display="Dynamic" 
                        ErrorMessage="Sai mật khẩu"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td align="right" class="style12">
                    Email :</td>
                <td align="left">
                    <asp:TextBox ID="txtemail1" runat="server"></asp:TextBox>
                    <span class="style10">*<asp:RequiredFieldValidator ID="RequiredFieldValidator7" 
                        runat="server" ControlToValidate="txtemail1" ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                    </span>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtemail1" ErrorMessage="Sai định dạng" 
                        ValidationExpression="\w*@\w*\.\w*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" class="style12">
                    Nhập lại email :</td>
                <td align="left">
                    <asp:TextBox ID="txtemail2" runat="server"></asp:TextBox>
                    <span class="style10">*<asp:RequiredFieldValidator ID="RequiredFieldValidator8" 
                        runat="server" ControlToValidate="txtemail2" Display="Dynamic" 
                        ErrorMessage="Không được trống"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator2" runat="server" 
                        ControlToCompare="txtemail1" ControlToValidate="txtemail2" Display="Dynamic" 
                        ErrorMessage="Sai email"></asp:CompareValidator>
                    </span>
                </td>
            </tr>
            <tr>
                <td class="style11" colspan="2" align="center">
                    <asp:Button ID="btndangky" runat="server" onclick="btndangky_Click" 
                        style="height: 26px" Text="Đăng ký" />
                    &nbsp;
                    <asp:Button ID="btnhuy" runat="server" Text="Hủy" onclick="btnhuy_Click" 
                        CausesValidation="False" PostBackUrl="~/TrangChu.aspx" />
                </td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="View2" runat="server">
        <span class="style8" style="color: #990033; font-size: 20px;">Chúc mừng bạn
        <asp:Label ID="lblten" runat="server"></asp:Label>
        &nbsp;đã đăng ký thành công</span><table 
            class="style6">
            <tr>
                <td class="style9">
                    &nbsp;</td>
                <td align="right">
                    <asp:LinkButton ID="lbtnquaylai" runat="server" PostBackUrl="~/TrangChu.aspx">Quay lại </asp:LinkButton>
                </td>
            </tr>
        </table>
    </asp:View>
</asp:MultiView>
</asp:Content>

